# Copyright 2017-2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/__init__.py" "")

# Do not add build targets for header only libraries.
# t2 cc_libray
add_clif_test_cc_library(t2
  t2.h
  t2.cc
)


# t4 cc_library
add_clif_test_cc_library(t4
  t4.h
  t4.cc
)

add_proto_library(clif_testing_nested_proto nested.proto)
add_pyclif_proto_library(clif_testing_nested_proto_wrapper
  nested.proto
  clif_testing_nested_proto
)

target_link_libraries(clif_testing_t4 clif_testing_nested_proto)

# std_variant cc_library
add_clif_test_cc_library(std_variant
  std_variant.h
  std_variant.cc
)

# extend_classmethods cc_library
add_clif_test_cc_library(extend_classmethods
  extend_classmethods.h
  extend_classmethods.cc
)

find_package(PythonLibs REQUIRED)
include_directories(${PYTHON_INCLUDE_DIRS})

add_subdirectory("python")
